package com.yami.shop.mystery.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.mystery.common.dto.UserInviteDto;
import com.yami.shop.mystery.common.model.UserInvite;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserInviteMapper extends BaseMapper<UserInvite> {

    // 先 取 前10
    List<UserInviteDto> getTops(@Param("activityId") Long activityId);

    // 获取 符合 活动规则的人
    List<UserInviteDto> selectConformToRules(@Param("activityId") Long activityId, @Param("ruleType") String ruleType, @Param("conditionNum") Long conditionNum,@Param("isReal") Long isReal);
}
